<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>xiaopangmall</title>
</head>

<body>
  <noscript>
    <strong>We're sorry but xiaopangmall doesn't work properly without JavaScript enabled. Please enable it to
      continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  <script>
    let htmlwidth = document.documentElement.clientWidth || document.body.clientWidth;
    let htmlDom = document.getElementsByTagName('html')[0];
    //当页面很大的时候给它一个固定值
    if (htmlwidth > 750) { htmlwidth = 750 }  
    htmlDom.style.fontSize = htmlwidth / 20 + 'px';
    console.log(htmlDom.style.fontSize)
  </script>
</body>

</html>